package file;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2025-02-27
 * Time: 19:56
 */
public class Demo5 {
    public static void main(String[] args) {
        File file = new File("./text.txt");
        File file1 = new File("./text2.txt");
        file.renameTo(file1);
    }
}
